
class CommonError(Exception):
    """ Base class for exceptions """
    pass

class BoardError(CommonError):
    """ Exception raised for errors in board """
    def __init__(self, value):
        self.value = value  
        
    def __str__(self): 
        return repr(self.value)
    
    
class PlayError(CommonError):
    """ Exception raised for errors in a play """
    def __init__(self, value):
        self.value = value  
        
    def __str__(self): 
        return repr(self.value)